﻿using PublicClass;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Organization.Domian.Model
{
    /// <summary>
    /// 栋舍管理
    /// </summary>
    [Table("CottageSetting")]
    public class CottageSetting: AuditFields
    {
        /// <summary>
        /// 主键自增
        /// </summary>
        [Key]
        public int CottageId { get; set; }

        /// <summary>
        /// 栋舍类型
        /// </summary>
        [StringLength(30)]
        public string? CottageType { get; set; }

        /// <summary>
        /// 栋舍名称
        /// </summary>
        [StringLength(30)]
         public string? CottageName { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(30)]
        public string? Principal { get; set; }

        /// <summary>
        /// 生产人员
        /// </summary>
        [StringLength(30)]
        public string? Production { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool CottageState { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(300)]
        public string? Remark { get; set; }
    }
}
